package com.aizhixin.lab.course.course.repository;

import com.aizhixin.lab.course.course.entity.TeacherLike;
import org.springframework.data.jpa.repository.JpaRepository;

public interface TeacherLikeRepository extends JpaRepository<TeacherLike,Long> {
    TeacherLike findByCreatedByAndTeacherIdAndCourseId(Long createdBy,Long teacherId,String courseId);
    Integer countByTeacherIdAndCourseId(Long teacherId,String courseId);
}
